﻿using System.Windows.Controls;
using DeepEarth.Map.Core;
using DeepEarth.Toolkit.Drawing;
using DeepEarth.Toolkit.Common;
using DeepEarth.Core.Utilities;
using System.Windows.Input;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using DeepEarth.Core;
using System.Collections.Generic;
namespace DeepEarth.Toolkit.Controls
{
    [TemplatePart(Name = PART_Clear, Type = typeof(Button))]
    [TemplatePart(Name = PART_Resume, Type = typeof(Button))]
    public class MeasureToolControlPanel : Control
    {
        const string PART_Clear = "PART_Clear";
        const string PART_Resume = "PART_Resume";

        public ICommand ClearCommand
        {
            get { return (ICommand)GetValue(ClearCommandProperty); }
            set { SetValue(ClearCommandProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ClearCommand.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ClearCommandProperty =
            DependencyProperty.Register("ClearCommand", typeof(ICommand), typeof(MeasureToolControlPanel), null);

        public ICommand ResumeCommand
        {
            get { return (ICommand)GetValue(ResumeCommandProperty); }
            set { SetValue(ResumeCommandProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ResumeCommand.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ResumeCommandProperty =
            DependencyProperty.Register("ResumeCommand", typeof(ICommand), typeof(MeasureToolControlPanel), null);
       
        public MeasureToolControlPanel()
        {
            DefaultStyleKey = typeof(MeasureToolControlPanel);           
        }
    }
}
